<!DOCTYPE html>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<svg>
  <text y="20">Foo<tspan> </tspan> bar</text>
</svg>
<script>
runAfterLayoutAndPaint(function() {
  document.querySelector('tspan').firstChild.remove();
}, true);
</script>
